import 'package:jyofservice/bean/xiafa_person_entity.dart';
import 'package:jyofservice/bean/order_person_entity.dart';
import 'package:jyofservice/bean/work_condition_entity.dart';
import 'package:jyofservice/bean/work_log_list_entity.dart';
import 'package:jyofservice/bean/seat_info_bean_entity.dart';
import 'package:jyofservice/bean/seat_statics_entity.dart';
import 'package:jyofservice/bean/huawu_list_entity.dart';
import 'package:jyofservice/bean/diaodu_detail_entity.dart';
import 'package:jyofservice/bean/histroy_list_entity.dart';
import 'package:jyofservice/bean/diao_du_list_entity.dart';
import 'package:jyofservice/bean/user_info_entity.dart';
import 'package:jyofservice/bean/jicha_list_entity.dart';
import 'package:jyofservice/bean/seat_info_list_entity.dart';
import 'package:jyofservice/bean/jpush_msg_bean_entity.dart';
import 'package:jyofservice/bean/tree_simple_data_entity.dart';
import 'package:jyofservice/bean/charge_data_entity.dart';
import 'package:jyofservice/bean/show_file_list_entity.dart';
import 'package:jyofservice/bean/sign_list_bean_entity.dart';
import 'package:jyofservice/bean/gongdan_list_entity.dart';
import 'package:jyofservice/bean/call_Record_list_entity.dart';

class EntityFactory {
  static T? generateOBJ<T>(json) {
    if (1 == 0) {
      return null;
    } else if (T.toString() == "XiafaPersonEntity") {
      return XiafaPersonEntity.fromJson(json) as T;
    } else if (T.toString() == "OrderPersonEntity") {
      return OrderPersonEntity.fromJson(json) as T;
    } else if (T.toString() == "WorkConditionEntity") {
      return WorkConditionEntity.fromJson(json) as T;
    } else if (T.toString() == "WorkLogListEntity") {
      return WorkLogListEntity.fromJson(json) as T;
    } else if (T.toString() == "SeatInfoBeanEntity") {
      return SeatInfoBeanEntity.fromJson(json) as T;
    } else if (T.toString() == "SeatStaticsEntity") {
      return SeatStaticsEntity.fromJson(json) as T;
    } else if (T.toString() == "HuawuListEntity") {
      return HuawuListEntity.fromJson(json) as T;
    }  else if (T.toString() == "HistroyListEntity") {
      return HistroyListEntity.fromJson(json) as T;
    } else if (T.toString() == "UserInfoEntity") {
      return UserInfoEntity.fromJson(json) as T;
    } else if (T.toString() == "JichaListEntity") {
      return JichaListEntity.fromJson(json) as T;
    } else if (T.toString() == "SeatInfoListEntity") {
      return SeatInfoListEntity.fromJson(json) as T;
    } else if (T.toString() == "JpushMsgBeanEntity") {
      return JpushMsgBeanEntity.fromJson(json) as T;
    } else if (T.toString() == "TreeSimpleDataEntity") {
      return TreeSimpleDataEntity.fromJson(json) as T;
    } else if (T.toString() == "ChargeDataEntity") {
      return ChargeDataEntity.fromJson(json) as T;
    } else if (T.toString() == "ShowFileListEntity") {
      return ShowFileListEntity.fromJson(json) as T;
    } else if (T.toString() == "SignListBeanEntity") {
      return SignListBeanEntity.fromJson(json) as T;
    } else if (T.toString() == "GongdanListEntity") {
      return GongdanListEntity.fromJson(json) as T;
    } else if (T.toString() == "CallRecordListEntity") {
      return CallRecordListEntity.fromJson(json) as T;
    } else {
      return null;
    }
  }
}